import java.util.Scanner;
/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: a1227
 * Date: 2022-09-11
 * Time: 19:52
 */
public class Test {
    /**
     * BC148 字符串操作
     * @param args
     */
    /*
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        //字符串长度n
        int n = scan.nextInt();
        //进行m次操作
        int m = scan.nextInt();
        String str = scan.next();
        char[] ary = new char[n + 1];
        for(int i = 0; i < str.length(); i++)
        {
            ary[i] = str.charAt(i);
        }
        while(m != 0){
            int l = scan.nextInt();
            int r = scan.nextInt();
            char c1 = scan.next().charAt(0);
            char c2 = scan.next().charAt(0);
            for(int i = l; i <= r; i++){
                if(ary[i - 1] == c1){
                    ary[i - 1] = c2;
                }
            }
            m--;
        }
        for(int i = 0; i < n; i++){
            System.out.print(ary[i]);
        }
    }
    */

    /**
     * BC149 简写单词
     * @param args
     */
    /*
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String word = scan.nextLine();
        word = word.toUpperCase();
        char[] wordAry = new char[word.length()];
        for(int i = 0; i < word.length(); i++){
            wordAry[i] = word.charAt(i);
        }
        System.out.print(wordAry[0]);
        for(int i = 0; i < word.length(); i++){
            if(wordAry[i] == ' '){
                System.out.print(wordAry[i + 1]);
            }
        }
    }
    */
}
